package com.saltedfish.tool.dialog;

import android.app.Activity;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.saltedfish.tool.R;

import butterknife.BindView;
import cn.droidlover.xdroidmvp.popwindow.DialogHelper;

public class UILogoutDialog extends DialogHelper {

    @BindView(R.id.tvBack)
    TextView tvBack;

    @BindView(R.id.btn_logout)
    Button btn_logout;


    public UILogoutDialog(Activity context) {
        super(context, R.style.AlertDialogStyle);
        this.mContext = context;
        setFullWidthScreen();
        setGravity(Gravity.BOTTOM);
        setAnimSet(R.style.popRightPopAnim);

    }

    @Override
    protected int getLayoutId() {
        return R.layout.dialog_ui_logout;
    }

    private boolean isShow  = true ;
    @Override
    protected void initView() {

        btn_logout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (listener != null) {
                    listener.onClick("logout");
                }
                dismiss();
            }
        });
//
        tvBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                dismiss();
            }
        });


    }

    @Override
    protected void initData() {

    }

    @Override
    protected void dialogDismiss() {

    }


}
